//一级路由
import Login from '../views/Login/index'
import Register from '../views/Register'
import Home from '../views/Home'
//二级路由
import LunGuan from '../views/Home/LunGuan'
import AddLun from '../views/Home/AddLun'
const routes=[
    {
        from:'/',
        to:'/login'
    },
    {
        path:'/login',
        component:Login
    },
    {
        path:'/register',
        component:Register
    },
    {
        path:'/home',
        component:Home,
        children:[
            {
                from:'/home',
                to:'/home/lunguan'
            },
            {
                path:'/home/lunguan',
                component:LunGuan
            },
            {
                path:'/home/addlun',
                component:AddLun
            },
            
        ]
    }
]
export default routes